// JavaScript Document
function submitInfo(){
	var email=$("#user").val();
	var pwd=$("#pwd").val();
	
	if(email == "") {
		alert("邮箱不能为空!");
		return;
	}
	
	if(pwd == "") {
		alert("密码不能为空!");
		return;
	}
	
	$.post("../json/userInfoAction_login",{"userInfo.w_email":email,"userInfo.w_pwd":pwd},function(data){
		var result=parseInt(data.result);
		if( result == 0 ){
			alert("用户名或密码错误!!!");
		}else if( result == 1 ){
			location.href="../to_index.jsp";
		}
	},"json");
}
